package com.nft.service.school.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("school_payrecord")
@ApiModel(value="SchoolPayrecordEntity对象", description="用户缴费主表")
public class SchoolPayrecordEntity implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "所属校区")
    private Long schoolId;

    @ApiModelProperty(value = "学生ID")
    private Long studentId;

    @ApiModelProperty(value = "学生姓名")
    private String xsname;

    @ApiModelProperty(value = "学生电话")
    private String xsphone;

    @ApiModelProperty(value = "缴费金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "购买次数")
    private Long num;

    @ApiModelProperty(value = "剩余金额")
    private BigDecimal remainder;

    @ApiModelProperty(value = "剩余次数")
    private Long remaindnum;

    @ApiModelProperty(value = "记录老师ID")
    private Long teacherId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}
